import Router from 'vue-router'

export default new Router({
  routes: [
    // 首页
    {
      path:'/',
      type:'homeVue',
      name: 'homeVue',
      component: () => import('@/components/index/home')
    },
    // 搜索记录页
    {
      path: '/record/ser',
      type: 'searchRecordVue',
      name: 'searchRecordVue',
      component: () => import('@/components/index/search_record')
    },
    // 浏览记录页
    {
      path: '/record/browse',
      type: 'browseRecordVue',
      name: 'browseRecordVue',
      component: () => import('@/components/index/browse_record')
    },
    // 用户信息页
    {
      path: '/user/info',
      type: 'userInfoVue',
      name: 'userInfoVue',
      component: () => import('@/components/index/user_info')
    },
    // 404
    {
      path: '/404',
      component: () => import('@/components/404')
    },
    {
      path: '*',
      redirect: '/404',
    }
  ],
  mode: 'history',
  base: 'home'
})

